package com.zego.wawaji.ui.center.credit.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * 积分记录列表
 * Created by Su on 2017/12/1.
 */
public class CreditList extends BaseData {
    private List<Credit> creditList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);
        this.creditList = (List<Credit>) getBaseDataList(jsonArray, Credit.class);
    }

    public List<Credit> getCreditList() {
        return creditList;
    }
}
